package cate.game.play.param;

import cate.common.util.XT;
import cate.game.play.part.FightTeam;
import easy.java.dev.note.NoteField;

import java.util.ArrayList;
import java.util.List;

public class BuffAppend {

	@NoteField("针对全体目标增加的被动buff")
	private List<Integer> teamBuffs = new ArrayList<>();

	public void addTeamBuff(int buff) {
		teamBuffs.add(buff);
	}

	public void beforeFight(FightTeam ft) {
		if (XT.isNotBlank(teamBuffs)) {
			for (Integer teamBuff : teamBuffs) {
				ft.addTeamBuff(teamBuff);
			}
		}
	}
}
